﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplicationBindersSample.Models.BindVersionModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Version Binding
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Version Binding</h2>
    <div>
        <% using (Html.BeginForm()) { %>
            <div>
                <fieldset>
                    <legend>Incoming model</legend>
                    <p>Version: <%: ViewData.Eval("Version") %></p>
                </fieldset>
            </div>
            <div>
                <fieldset>
                    <legend>New input</legend>
                    <p>Enter Version in format <em>x.x.x.x</em>.</p>
                    <p>Version: <%: Html.TextBoxFor(m => m.Version) %> <%: Html.ValidationMessageFor(m => m.Version) %></p>
                    <p><input type="submit" /></p>
                </fieldset>
            </div>
        <% } %>
    </div>
</asp:Content>
